﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using MovieRental.XmlDataService;


namespace MovieRental.Entities
{
    [XmlEntity("MediaTypes")]
    [DataContract]
    public class MediaTypeInfo : BaseEntity<Guid>
    {
        public MediaTypeInfo()
        {
            Id = Guid.NewGuid();
        }

        public MediaTypeInfo(Guid id)
        {
            Id = id;
        }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public double DefaultPrice { set; get; }


    }
}
